import {createSlice} from "@reduxjs/toolkit";


export type RoleState = {
    age: number,
    authority: string,
}

export const initialState: RoleState = {
    age: 15,
    authority: "ROLE_USER"
}

export const roleSlice = createSlice({
    name: "user",
    initialState,
    reducers: {

    }
});

export const {} = roleSlice.actions;
export default roleSlice.reducer;